package com.nenude.corejava.ch7.newhomework2;

public class LiteratureStudent extends Student {

	private double lecture;
	private double literature;

	public LiteratureStudent() {
	}

	public LiteratureStudent(int studentid, String name, String sex, int age,
			double midterGrade, double finalExamGrade, double lecture,
			double literatur) {
		super(studentid, name, sex, age, midterGrade, finalExamGrade);
		this.lecture = lecture;
		this.literature = literatur;
	}

	@Override
	public double gradeAssessing() {
		double grade = (lecture + literature) * 0.35
				+ (getMidterGrade() + getFinalExamGrade()) * 0.15;
		return grade;
	}

}
